package cn.edu.zut.soft.student.service.class_;

import cn.edu.zut.soft.student.bean.PageBean;
import cn.edu.zut.soft.student.model.Class;
import cn.edu.zut.soft.student.model.Student;
import cn.edu.zut.soft.student.service.class_.vo.ClassQuery;

import java.util.List;

/**
 * @Author ChrisPhantom
 * @CreatDate 2021/02/22 16:58
 */
public interface ClassBo {

    /*
     * @Param: [c]
     * @Return: int
     * @Author: ChrisPhantom
     * @Date: 2021/2/23 12:10
     * @Description: 新增班级
     */
    public int addClass(Class c);

    /*
     * @Param: [classid]
     * @Return: int
     * @Author: ChrisPhantom
     * @Date: 2021/2/23 12:12
     * @Description: 按班号删除
     */
    public int deleteClass(String classid);

    /*
     * @Param: [c]
     * @Return: int
     * @Author: ChrisPhantom
     * @Date: 2021/2/23 12:11
     * @Description: 更新班级信息
     */
    public int updateClass(Class c);

    /*
     * @Param: [classid]
     * @Return: cn.edu.zut.soft.student.model.Class
     * @Author: ChrisPhantom
     * @Date: 2021/2/23 12:13
     * @Description: 按班号查询
     */
    public Class queryClassById(String classid);

    /*
     * @Param: [classQuery]
     * @Return: cn.edu.zut.soft.student.bean.PageBean<java.util.List<cn.edu.zut.soft.student.model.Class>>
     * @Author: ChrisPhantom
     * @Date: 2021/2/22 16:59
     * @Description: 按需查询班级列表
     */
    public PageBean<List<Class>> queryClasses(ClassQuery classQuery);

    /*
     * @Param: [classid]
     * @Return: java.util.List<cn.edu.zut.soft.student.model.Student>
     * @Author: ChrisPhantom
     * @Date: 2021/2/23 15:41
     * @Description: 根据班号查询所有学生
     */
    public List<Student> queryClassStudents(String classid);
}
